# -*-* encoding:UTF-8 -*-
# author        : mengy
# date          : 2018/12/4
# description   : ord() 函数，返回指定字符的十进制ascii码值

string = '0123456789abcdefg'
list = ['1','2','a']

for i in range(len(list)):
    print(list[i],'的ASCII码:',ord(list[i]))
for i in range(len(string)):
    print(string[i],'的ASCII码:',ord(string[i]))

letter_codes = [ord(ch) for ch in 'WASDEQwasdeq']
print(letter_codes)

